<?phpinclude_once("../../../config.php");//访问就直接输出推荐的文章//$recommend_news=select_lines_all_items($table_prefix."news","nid desc,recommend_order desc","recommend = '1'","5");$recommend_news=select_lines_all_items($table_prefix."news","top_order desc,recommend_order desc,nid desc","recommend = '1'","");//提取文章中的图片，合并到数组中foreach ($recommend_news as $k=>$v ){    $recommend_news[$k]['imagelist']=get_images_from_richtext($v['content']);    $html_string = htmlspecialchars_decode($v['content']); // 将空格去除 $content = st    $content     = str_replace(" ", "", $html_string);    $content=preg_replace('/\r|\n|\t/','',$content);    $recommend_news[$k]['content_text']=strip_tags($content);}    $data=$recommend_news;    $arr['status'] = 200;    $arr['info'] = $data;    die(json_encode($arr));?>